package com.ysm.smfu.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.ysm.smfu.R;
import com.ysm.smfu.activity.FoundActivity;
import com.ysm.smfu.utils.UIUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2016/9/26.
 */
public class MyYuErFragment extends MyBaseFragment {
    //    @BindView(R.id.tixian)
//    TextView tixian;
    @BindView(R.id.shengji)
    TextView shengji;
    @BindView(R.id.fragment_my_yuer)
    TextView fragment_my_yuer;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = UIUtils.inflate(R.layout.fragment_my_yuer);
        ButterKnife.bind(this, view);
        Bundle arguments = getArguments();
        double yuer = arguments.getDouble("yuer",0.00);
        fragment_my_yuer.setText(yuer + "元");
        return view;
    }

    @OnClick({R.id.shengji})
    public void onclick(View view) {
        switch (view.getId()) {
//            case R.id.tixian:
////                将钱提取到银行卡
//                break;
            case R.id.shengji:
//                跳转到“商城成为VIP界面”web界面
                UIUtils.startActivity(FoundActivity.class, "found", 10);
                break;
        }
    }

}
